package com.ruoyi.finance.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class LoginController {
    private Logger logger = LoggerFactory.getLogger(LoginController.class);



    @RequestMapping("/login1")
    public void showLogin1(){
        logger.warn("This is a warn message!");
        logger.error("This is error message!");
        try {
            int a = 1/0;
        } catch (Exception e){
            e.printStackTrace();
        }

    }

}